Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Стилизация #4

Merged
merged 6 commits into from
Dec 2, 2024

Conversation

KershDKas
Copy link
Contributor

@KershDKas KershDKas commented Dec 1, 2024

@keksobot keksobot changed the title Module3 task1 Стилизация Dec 1, 2024
keksobot pushed a commit that referenced this pull request Dec 2, 2024
@keksobot
Copy link
Contributor

keksobot commented Dec 2, 2024

♻️ Я собрал ваш пулреквест. Посмотреть можно здесь.

}

.additional-goods__title {
font-family: "Oswald", sans-serif;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

в переменную


.advantages__title {
margin: 0;
font-family: "Oswald", sans-serif;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Все шрифты в переменную, так будет тебе проще)
Принцип DRY не повторятся

Comment on lines 1 to 23
@font-face {
font-family: "Oswald";
font-style: normal;
font-weight: 400;
src: url("../../fonts/oswald/oswaldregular.woff2") format("woff2");
font-display: swap;
}

@font-face {
font-family: "Oswald";
font-style: normal;
font-weight: 500;
src: url("../../fonts/oswald/oswaldmedium.woff2") format("woff2");
font-display: swap;
}

@font-face {
font-family: "Lato";
font-style: normal;
font-weight: 400;
src: url("../../fonts/lato/Lato-Regular.woff2") format("woff2");
font-display: swap;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Создай файл fonts.less

Comment on lines 38 to 55
.page {
height: 100%;
background-color: #E5E5E5;
}

.page__body {
display: flex;
flex-direction: column;
min-height: 100%;
margin: 0 auto;
font-family: "Lato", sans-serif;
font-weight: 400;
font-size: 14px;
line-height: 18px;
color: #444444;
background-color: #FFFFFF;
width: 320px;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это файл page

Comment on lines 25 to 36
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
border: 0;
padding: 0;
white-space: nowrap;
clip-path: inset(100%);
clip: rect(0 0 0 0);
overflow: hidden;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это файл visually-hidden

line-height: 18px;
color: #444444;
background-color: #FFFFFF;
width: 320px;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Надо убрать)
у нас будет центровщик чтоб цвета протягивались, а контент был по середине

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

неее.....

  1. то что можно нарисовать на css делаем на css
  2. либо экспортируешь единую картинку с наложением, либо css

font-display: swap;
}

@oswald: "Oswald", sans-serif;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Создай файл variables.less (Еще позже добавим переменные))

@keksobot keksobot merged commit 854d6be into htmlacademy-adaptive:master Dec 2, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants